import http from '@/utils/request'
import { AuthApi } from '../auth'

/**账户信息 */
export interface PatientInfo {
  patientId: string
  name: string
  sex: string
  birthday: Date
  tel: string
  address: string
  idNo: string
}

export interface GetPatientInfoReq {
  cardNo: string
  cardType: EnumCardType
}

export enum EnumCardType {
  就诊卡号 = 0,
}
/**患者信息 */
export const PatientAPIs = {
  /**获取患者信息(多条) */
  getPatientInfos: (cardNo: string, cardType: EnumCardType) =>
    http.get<PatientInfo[]>(`/patient/getPatientInfos`, { cardNo, cardType }),
  /**获取患者信息(单条) */
  getPatientInfo: (patientId: string) => http.get<PatientInfo[]>(`/patient/getPatientInfo`, { patientId }),
}
